package com.ctn.information.view;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class PageWebView extends WebView
{
  public PageWebView(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    init();
    setBackgroundColor();
  }

  private void init()
  {
    setWillNotDraw(false);
    WebSettings localWebSettings = getSettings();
    //localWebSettings.setCacheMode(WebSettings.LOAD_NO_CACHE);
    localWebSettings.setJavaScriptEnabled(true);
    localWebSettings.setLightTouchEnabled(true);
    localWebSettings.setJavaScriptCanOpenWindowsAutomatically(true);
    setScrollBarStyle(0);
    setScrollbarFadingEnabled(true);
    addJavascriptInterface(this, "js");
    setFocusable(true);
    WebSettings.RenderPriority localRenderPriority = WebSettings.RenderPriority.HIGH;
    localWebSettings.setRenderPriority(localRenderPriority);
  }

  public void setBackgroundColor()
  {
      int i = getContext().getResources().getColor(2131296412);
      setBackgroundColor(i);
  }
}